/**
 * 
 */
package com.feonix.designPattern.bridge.sample1;

import java.util.Random;

/**
 * @CopyRight (c)1993-2017
 * @Project common_practice
 * @Comments 请输入该类的描述
 * @NameSpace com.feonix.designPattern.bridge.sample1
 * @Author Feonixzw
 * @CreateDate 2018年2月5日
 */
public class RandomDisplay extends DisplayImpl {

	/**
	 * @param display
	 */
	public RandomDisplay(Display display) {
		super(display);
	}

	public void randomDisplay(int times) {
		Random random = new Random();
		times = random.nextInt(8);
		super.open();
		for (int i = 0; i < times; i++) {
			super.print();
		}
		super.close();

	}
}
